  

#import <UIKit/UIKit.h>

@class AlertView;

@protocol AlertContentView <NSObject>

@property (nonatomic, weak) AlertView * container;

@optional;
-(void)clickBackHiddenAction;

@end

@interface AlertView : UIView

- (instancetype)initWithContent:(UIView<AlertContentView> *)content;

- (void)show;
- (void)showIn:(UIView *)container;
- (void)showWithCompetion:(void (^)(BOOL finished))completion;
- (void)showWithFram:(CGRect)frame Container:(UIView *)container;

- (void)showCenterWithAnimation:(BOOL)animation;

- (void)hide;
- (void)hideWithAnimated:(BOOL)animated;
- (void)hideWithCompetion:(void (^)(BOOL finished))completion animated:(BOOL)animated;

- (void)showSharedView;
- (void)showModifyViewIn:(UIView *)container;

- (void)setViewYWithNumber:(NSInteger)number;

/**关闭阴影点击*/
@property (nonatomic, assign)BOOL closeHiddenClick;
/**关闭阴影*/
@property (nonatomic, assign)BOOL closeMask;

@end
